package com.cj.flowabletest.task;

import org.flowable.engine.delegate.DelegateExecution;
import org.flowable.engine.delegate.JavaDelegate;

import java.util.Map;

/**
 * 请求通过
 * @author cc
 * @date 2025-03-03 16:00
 **/

public class ApproveServiceTask implements JavaDelegate {
    @Override
    public void execute(DelegateExecution execution) {

        // 获取流程里面的变量
        Map<String, Object> variables = execution.getVariables();

        Object name = variables.get("name");
        Object days = variables.get("days");
        System.out.println("请假通过"+ name + days);
    }
}
